<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>接单后台管理</title>
    <link rel="stylesheet" type="text/css" href="../../static/admin/css/reset.css">
    <link rel="stylesheet" type="text/css" href="../../static/admin/css/main.css">
    <link rel="stylesheet" href="../../static/admin/css/jquery.pagination.css">
    <script type="text/javascript" src="../../static/admin/js/jquery-1.12.4.min.js"></script>
    <script type="text/javascript" src="../../static/admin/js/jquery.pagination.min.js"></script>
</head>
<body>
<div class="breadcrub">
    当前位置：接单管理 > 已结账订单
    <form class="news_filter_form">
        <input type="text" placeholder="输入员工或者订单号查找订单" class="input_txt" name="keywords">
        <input type="submit" value="搜 索" class="input_sub">
    </form>
</div>
<div class="pannel">
    <table class="common_table">
        <tr>
            <th width="5%">编号1</th>
            <th width="8%">接单日期</th>
            <th width="10%">订单号</th>
            <th width="10%">商品图片</th>
            <th width="5%">站点/店铺</th>
            <th width="10%">ASIN</th>
            <th width="5%">卖家/类型</th>
            <th width="5%">接单/下单金额</th>
            <th width="5%">操作员工</th>
            <th width="10%">备注</th>
            <th width="5%">订单状态</th>
            <th width="5%">详细信息</th>


        </tr>
        {% for news in data.news_list %}
            <tr>
                <td>{{ news.id }}</td>
                <td >{{ news.jiedan_time }}</td>
                <td>{{ news.ext1 }}</td>
                <td><img src="/static/img/item_picture/{{news.item_picture}}"></td>
                {% if news.site_id==1%}
                <td>US</td>
                {% elif news.site_id==2%}
                <td>UK</td>
                {% elif news.site_id==3%}
                <td>DE</td>
                {% elif news.site_id==4%}
                <td>CA</td>
                {% endif %}
                 <td>{{ news.ASIN }}</td>
                {% if news.seller_id==1%}
                <td>卖家</td>
                {% else %}
                <td>买家</td>
                {% endif %}
                 <td>{{ news.amount }}</td>
                  <td>{{ news.staff_name }}</td>
                <td>{{ news.ps }}</td>
                {% if news.status_id==1%}
                <td>
                    <a href="#" class="review1_wxd">未下单</a>
                </td>
                {% elif news.status_id==2%}
                 <td>
                    <a href="#" class="review1_yxd">待上评</a>
                </td>
                {% elif news.status_id==3%}
                 <td>
                    <a href="#" class="review1_dsp">待结账</a>
                </td>

                 {% elif news.status_id==4%}
                 <td>
                    <a href="#" class="review1_yjz">已结账</a>
                </td>
                {% endif %}
                <td>
                    <a href="/admin/order_info?order_id={{news.id}}" class="review">查看</a>
                </td>
            </tr>
        {% endfor %}
    </table>
</div>

<div class="box">
    <div id="pagination" class="page"></div>
</div>

<script>
    $(function () {
        $("#pagination").pagination({
            currentPage: {{ data.current_page }},
            totalPage: {{ data.total_page }},
            callback: function (current) {
                window.location = '/admin/news_review?p=' + current
            }
        });
    });
</script>

</body>
</html>